package com.jingbian.cppccbackend.mapper.admin;

import com.jingbian.cppccbackend.entity.HomePageBanner;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 主页轮播图表，用于存储轮播图信息 Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-03-02
 */
@Mapper
public interface adminHomePageBannerMapper extends BaseMapper<HomePageBanner> {
    @Update("update home_page_banner set image_url = null,updated_at=now() where bid = #{bid}")
    void clearUrl(Integer bid);
}
